<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>和尚挑水</title>
</head>
<body>
    <!-- 山上有一口缸可以装50升水，现在有15升水。老和尚叫小和尚下山挑水，每次可以挑5升。问：小和尚要挑几次水才可以把水缸挑满？ -->
</body>
<script>
    (function () {
        var water = 15;
        var num = 0;
        
        for (let i = water; i < 50; i += 5) {
            num++;
        }
        
        console.log(num);






    })();
</script>
</html>